﻿@model ICollection<DAL.BlogComment>

<div class="BlogComments">
    <h3>Comments</h3>
    @foreach (var comment in Model)
{
    if (!comment.Deleted)
    {
        <div class="singleComment">
            <p class="commentInfo"><b>Name:</b> @(comment.Name ?? "Anonymous") / <b>Email:</b> @(comment.Email ?? "No-Email")</p>
            <p>@comment.Comment</p>
            <p class="delete">@Html.ActionLink("Delete Comment", "DeleteComment", "Blog", new { id = comment.BlogCommentId }, null)</p>
        </div>
    }

}
</div>

